package com.itheima.common;
/**
 * @Author: zhuan
 * @Desc: 员工模块-静态常量类
 * @Date: 2022-05-11 16:52:20
 */
public class EmployeeConstant {

		/**
		 * 员工登录-令牌存活时间
		 */
		public static final Integer TOKEN_DEAD = 0;
		/**
		 * 员工登录-令牌存活时间
		 */
		public static final Integer TOKEN_EXPIRE = 60*30;
		 /**
		  * 员工状态-禁用
		  */
		 public static final int EMPLOYEE_STATUS_DISABLE = 0;
		/**
		 * 员工初始密码
		 */
		public static final String EMP_INIT_PASSWORD = "123456";
		/**
		 * 员工状态-启用
		 */
		public static final int EMPLOYEE_STATUS_ENABLE = 1;
		/**
		 * 员工登录-业务主键
		 */
		public static final String EMPLOYEE_LOGIN = "EMPLOYEE_LOGIN_";
		/**
		 * 用户登录-业务主键
		 */
		public static final String USER_LOGIN = "USER_LOGIN_";
		/**
		 * 员工登录-cooki//1.构建更新条件 update dish set status = #{statsu} where id in #{ids}
		 * 				LambdaUpdateWrapper<Dish> wrapper = new LambdaUpdateWrapper<>();
		 * 				wrapper.set(Dish::getStatus,status);
		 * 				wrapper.in(Dish::getId,ids);
		 * 				//2.执行更新操作
		 * 				dishMapper.update(new Dish(),wrapper);e中key
		 */
		public static final String TOKEN = "userInfo";

		public static final String USER_TOKEN = "token";
		/*逻辑删除*/
		public static final Integer IS_NOT_DELETED = 0;

		public static final String ADMIN = "admin" ;
}
